<?php
session_start();
date_default_timezone_set("America/Lima");
if(!isset($_SESSION["op"])){
    $_SESSION["op"]=1;
}

include_once 'recursos/isMobile.php';
if (isMobile()) {	
	//header('Location: mobile.php'); // let's redirect the page to the mobile site
}

 $_SESSION["mobile"]=true;
 
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"[]>
<html xmlns="http://www.w3.org/1999/xhtml" dir="ltr" lang="en-US" xml:lang="en">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>...:::SIGECO PEE - Sistema de Gesti&oacute;n de Contenido:::...</title>
    <meta name="description" content="Description" />
    <meta name="keywords" content="Keywords" />    
    <meta NAME="ROBOTS" CONTENT="ALL" />
    <meta HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE" />

    
    <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/lavanderia.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/ui/jquery.ui.css" type="text/css" media="screen" />
    <link rel="stylesheet" href="css/jsDatePick_ltr.css" type="text/css" media="screen" />   
    <link rel="stylesheet" href="css/jquery.tooltip.css" type="text/css" media="screen" />   
    <link rel="stylesheet" href="css/jquery.paginate.css" type="text/css" media="screen" /> 
<!--    <link rel="stylesheet" href="css/tipsy.css" type="text/css" media="screen" />-->
    
    <!--[if IE 6]><link rel="stylesheet" href="css/style.ie6.css" type="text/css" media="screen" /><![endif]-->
    <!--[if IE 7]><link rel="stylesheet" href="css/style.ie7.css" type="text/css" media="screen" /><![endif]-->
    
    <link rel="shortcut icon" href="images/lavadora.png" type="image/x-icon" />
        
    <script type="text/javascript" src="javascript/jquery.js"></script>
    <script type="text/javascript" src="javascript/jquery.ui.js"></script>
    <script type="text/javascript" src="javascript/jquery.selectOptions.js"></script>
    <script type="text/javascript" src="javascript/script.js"></script>
    <script type="text/javascript" src="javascript/lavanderia.js"></script>
    <!-- <script type="text/javascript" src="javascript/jsDatePick.js"></script> -->
    <script type="text/javascript" src="javascript/jquery.timepicker.js"></script>
    <script type="text/javascript" src="javascript/jquery.validate.js"></script>
    <script type="text/javascript" src="javascript/additional-methods.js"></script>
    <script type="text/javascript" src="javascript/jquery.tooltip.min.js"></script>
    <script type="text/javascript" src="javascript/jquery.paginate.js"></script>
    <script type="text/javascript" src="javascript/jquery.PrintArea.js"></script>
<!--    <script type="text/javascript" src="javascript/jquery.tipsy.js"></script>-->
    <script>
        $(document).ready(function(){
           $("#usuario").focus(); 
        });
    </script>
</head>
<body>
            
<?php

include 'controlador/controlador.general.php';

if(!isset($_SESSION["op"])){
    
}else{
    
    if(isset ($_REQUEST["seccion"])){
        $seccion = $_REQUEST["seccion"];
    }else{
        $seccion = "index";
    }       
    
    if($_SESSION["op"]==1 && $seccion!="index" && $seccion!="login"){
        $seccion = "index";
    }
    
     if($_SESSION["op"]==2  && ($seccion=="index" || $seccion=="login")){
            $seccion = "main";
        }
        
    $control =  new Controlador();
    $control->getControladorgeneral($seccion);

}
?>

    

<div id="loading-div-background" onclick="return closeWait();">   
    <div id="loading-div" class="ui-corner-all" >
        <img style="height:30px; width: 200px;  margin:30px;" src="images/gif/cargando.gif" alt="Cargando.."/> <br/>
        <center><font color="red" style='font-family:"Helvetica", Arial, sans-serif; font-size:14px;' > Cargando informaci&oacute;n... </font></center>
     </div>
</div>
    

<div id="dialog">    
</div>
    
<div id="dialog2">    
</div>
    
</body>
</html>